using B.S.Database.ErrorCode;
using MediatR;
using Microsoft.AspNetCore.Http;

namespace B.S.Database.Write.Api.Application.Commands.Image
{
    public class PictureUploadAndCreateCommands : IRequest<Apiresult<object>>
    {
        /// <summary>
        /// 图片文件
        /// </summary>
        public IFormFile? File { get; set; }

        /// <summary>
        /// 多个图片文件
        /// </summary>
        public IFormFileCollection? Files { get; set; }

        /// <summary>
        /// 主键ID
        /// </summary>
        public int TraceabilityId { get; set; }

        /// <summary>
        /// 分隔符，用于连接多个图片字符串，默认为逗号
        /// </summary>
        public string Separator { get; set; } = ",";

        /// <summary>
        /// 是否追加模式：true为追加到现有内容，false为覆盖现有内容
        /// </summary>
        public bool IsAppend { get; set; } = true;

        /// <summary>
        /// 图片类型：Inspection_Repor, Livestock_Certification, Certification_Documents, Food_Safety, Raw_Material, Auxiliary_Materials, Additive_Materials, Packaging_Materials, Enterprise_Image
        /// </summary>
        public string ImageType { get; set; } = "Inspection_Repor";
    }
} 